﻿namespace Xph.Sag.Kernel;

public class DeviceInfo
{
    public DeviceInfo()
    {
        Channels = new List<DeviceChannel>();
    }

    public byte DeviceId { get; set; }

    public List<DeviceChannel> Channels { get; set; }

    public string EndPoint { get; set; }
    public byte Address { get; set; }
    public long OnlineTime { get; set; }
    public string SessionId { get; set; }
}

public class DeviceChannel
{
    public int Channel { get; set; }
    public double Value { get; set; }
    public int Status { get; set; }
    public int ErrorCode { get; set; }
    public int AorM { get; set; }
}